<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>mainpage.jsp</title>

    <style type="text/css">
<!--
.STYLE1 {
	font-size: 24px;
	font-weight: bold;
}
.STYLE2 {color: #FFFFFF}
.STYLE3 {font-size: 14px}
.STYLE4 {font-size: 13px}
-->
    </style>
  </head>
  
  <body>
  
  <p align="center" class="STYLE1">Activiti工作流示例</p>
  <a href="<s:url action="logoutLogio"/>">注销</a><br>
  <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td bgcolor="#006666" colspan="25"><span class="STYLE2">待处理的任务</span></td>
    </tr>
    <tr>
      <td><hr color="#000000" noshade="noshade" size="2"></td>
    </tr>
    <tr>
      <td bgcolor="#e5e5e5"><table width="100%" border="0">
        <tr>
          <td width="18%" bgcolor="#d5d5d5"><div align="center" class="STYLE3">任务名称</div></td>
          <td width="24%" bgcolor="#d5d5d5"><div align="center" class="STYLE3">任务创建时间</div></td>
          <td width="24%" bgcolor="#d5d5d5"><div align="center" class="STYLE3">查看流程</div></td>
          <td width="18%" bgcolor="#d5d5d5"><div align="center" class="STYLE3">任务类型</div></td>
          <td width="16%" bgcolor="#d5d5d5"><div align="center" class="STYLE3">操作</div></td>
        </tr>
       	<s:iterator value="tasks">
       		<tr>
            	<td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
            	<s:property value="name"/>
           	 </div></td>
           	 	<td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
             	<s:date name="createTime" format="yyyy-MM-dd HH:mm"/>
           	 </div></td>
           	 	<td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
             	<a href=" <s:url action='showImg'><s:param name='executionId' value='executionId'/>  </s:url> " target="_blank">查看流程</a>
          	  </div></td>
           	 	<td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
             	<s:if test="assignee==null&&owner==null">共享任务</s:if>
             	<s:else>个人任务</s:else>
          	  </div></td>
           	 	<td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
             	<s:if test="name=='主管审核'">  
             		<a href="<s:url action='toVerify'>
             			<s:param name='taskId' value='%{id}'> </s:param> 
             			<s:param name='executionId' value='%{executionId}'></s:param>
             			</s:url> 
             		">审核</a>   </s:if>
             	<s:if test="name=='修改报销单'">修改报销单</s:if>
          	  </div></td>
            </tr>
       	</s:iterator>  
        
      </table></td>
    </tr>
  </table>
  
  <p>&nbsp;</p>
  <p>&nbsp;	</p>
  <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td bgcolor="#006666" coldiv="25"><div class="STYLE2">我发起的业务</div></td>
    </tr>
    <tr>
      <td><hr color="#000000" noshade="noshade" size="2"></td>
    </tr>
    <tr>
      <td bgcolor="#e5e5e5">
        <table width="100%" border="0">
          <tr>
            <td width="18%" bgcolor="#d5d5d5"><div align="center" class="STYLE3">任务名称</div></td>
            <td width="24%" bgcolor="#d5d5d5"><div align="center" class="STYLE3">任务创建时间</div></td>
            <td width="24%" bgcolor="#d5d5d5"><div align="center" class="STYLE3">状态</div></td>
          </tr>
          <s:iterator value="myActiveTasks">
          	<tr>
              <td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
              	<s:property value="name"/>
              </div></td>
              <td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
              	<s:date name="startTime" format="yyyy-MM-dd HH:mm"/>
              </div></td>
              <td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
              		<a href=" <s:url action='showImg'><s:param name='executionId' value='executionId'/>  </s:url> " target="_blank">查看流程</a>
              </div></td>
            </tr>
          </s:iterator>
          <s:iterator value="myEndTasks">
          	<tr>
              <td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
              	<s:property value="name"/>
              </div></td>
              <td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
              	<s:date name="startTime" format="yyyy-MM-dd HH:mm"/>
              </div></td>
              <td bgcolor="#f9f9f9"><div align="center" class="STYLE4">
              	已完成
              </div></td>
            </tr>
          </s:iterator>
                 
        </table>
      </td>
    </tr>
  </table>
  <p>&nbsp;</p>
  <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td bgcolor="#006666" coldiv="25"><div class="STYLE2">个人业务</div></td>
    </tr>
    <tr>
      <td><hr color="#000000" noshade="noshade" size="2"></td>
    </tr>
    <tr>
      <td>
          <table width="100%" border="0">
            <tr>
              <td width="47%">&nbsp;</td>
              <td width="53%">&nbsp;</td>
            </tr>
            <tr>
              <td><div class="STYLE3">
                  <div align="center">业务名称</div>
              </div></td>
              <td><div class="STYLE3">
                  <div align="center">操作</div>
              </div></td>
            </tr>
            <tr>
              <td><div align="center"><span class="STYLE4">财务报销</span></div></td>
              <td><div align="center"><a href="<s:url action="shenqing"/>">申请</a></div></td>
            </tr>
          </table>
     </td>
    </tr>
  </table>
  <p>&nbsp;</p>
  </body>
</html>
